<?php
/**
 * 
 * 验证器
 * 
 * */
namespace app\admin\validate;
use think\Validate;

class Muen_validate extends Validate
{
    //规则
    protected $rule = [
        'name'          => 'require',
        'm'          => 'require|alphaDash',
        'c'          => 'require|alphaDash',
        'a'          => 'require|alphaDash',
        
        
    ];
    
    //自定义提示信息
    protected $message = [
        'name.require'       =>  '名称不能为空!',
        'm.require'          =>  '模块为空，并且为字母!',
        'c.require'          =>  '控制器不能为空，并且为字母!',
        'a.require'          =>  '方法不能为空，并且为字母!',
       
        ];
}